package com.fsp.blog.controller;

import com.fsp.blog.pojo.SysUser;
import com.fsp.blog.utils.UserThreadLocal;
import com.fsp.blog.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fushengping
 * @className TestController
 * @description
 * @date 2021/11/15 0:07
 */
@RestController
@RequestMapping("test")
public class TestController {

    @RequestMapping
    public Result test(){
        //登陆时直接取出用户信息
        SysUser sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.success(null);
    }
}
